<?php
/**
 *  Generic Item: a class for property-based model value management
 *  Similar to Active Record pattern
 *  Implements ArrayAccess: model[index] returns the value of property 'index'
 *
 *
 */
namespace Dclub\modules\Catalog;

class Item_Default
    extends \Yz\modules\Generic\Item_Default
{

    /** NOTE required!
     *
     */
    protected static $descriptor;

    /**
     *  @var Yz_Array
     */
    protected $catPath;


    /** get the item's category path
     *
     *  @return Yz_Array
     */
    public function getCatPath()
    {
        debug();
        $path =& $this->catPath;
        if (null === $path) {
            // ### try to fetch ???
        }
        return $path;
    }


    /** set the item's category path (done by model)
     *  @param Yz_Array
     *  @return chainable
     */
    public function setCatPath(\Yz_Array $path)
    {
        debug();
        $this->catPath = $path;
        return $this;
    }

}
